package com.zxl.grocery.common.persistence.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 来源
 * </p>
 *
 * @author zxl
 * @since 2017-07-31
 */
@TableName("crawler_sources")
public class CrawlerSources extends Model<CrawlerSources> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 修改时间
     */
	@TableField("modify_date")
	private Date modifyDate;
    /**
     * 来源
     */
	private String source;
    /**
     * 来源图片
     */
	@TableField("source_image")
	private String sourceImage;
    /**
     * 状态
     */
	private Integer status;
    /**
     * 创建人ID
     */
	@TableField("create_user_id")
	private Integer createUserId;
    /**
     * 修改人ID
     */
	@TableField("update_user_id")
	private Integer updateUserId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getSourceImage() {
		return sourceImage;
	}

	public void setSourceImage(String sourceImage) {
		this.sourceImage = sourceImage;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}

	public Integer getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(Integer updateUserId) {
		this.updateUserId = updateUserId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CrawlerSources{" +
			"id=" + id +
			", createDate=" + createDate +
			", modifyDate=" + modifyDate +
			", source=" + source +
			", sourceImage=" + sourceImage +
			", status=" + status +
			", createUserId=" + createUserId +
			", updateUserId=" + updateUserId +
			"}";
	}
}
